﻿/**
 * Express服务
 * @type {*|createApplication}
 */
let express = require('express');
let path = require('path');
let app = express();

app.use(express.static(path.join(__dirname, '../dist')));

app.get('/', function (req, res) {
    res.render('index');
});

let server = app.listen(10121, function () {
    let host = server.address().address;
    let port = server.address().port;

    console.log('listening at http://%s:%s  %s', host, port, new Date());
});
